@extends('admin.layout.common')
@section('content')
    <link rel="stylesheet" href="{{url('/css/finance/FinancialAccountingCenter.css')}}">
    <div class="content">
        <h1 class="h1">财务记账中心</h1>
        <!-- 公共结束 -->
        <div class="center_box">
            <label for="">选择月份：</label>
            <form method="post">
                {{csrf_field()}}
                <input type="month" name="time"/>
                <button type="submit" value="查看" class="chakan">查看</button>
            </form>
            @if(!empty($info))
            <table border="1" style="width:95%;">
                <h1 class="h1 chengben">当月累计成本：<span>{{$info['cost_total']}}</span>元</h1>
                <tr>
                    <th>分账ID</th>
                    <th>分账类型</th>
                    <th>分账总金额</th>
                    <th>实际分账金额</th>
                    <th>审核人</th>
                    <th>复审人</th>
                </tr>
                <tr>
                    <td>{{$info['id']}}</td>
                    <td>音乐人分账</td>
                    <td>{{$info['sp_total']}}</td>
                    <td>{{$info['music_total']}}</td>
                    <td>{{$info['check_man1']}}</td>
                    <td>{{$info['check_man2']}}</td>
                </tr>
                <tr>
                    <td>{{$info['id']}}</td>
                    <td>代理人</td>
                    <td>{{$info['sp_total']}}</td>
                    <td>{{$info['agent_total']}}</td>
                    <td>{{$info['check_man1']}}</td>
                    <td>{{$info['check_man2']}}</td>
                </tr>
                <tr>
                    <td>{{$info['id']}}</td>
                    <td>指定人</td>
                    <td>{{$info['sp_total']}}</td>
                    <td>{{$info['appoint_total']}}</td>
                    <td>{{$info['check_man1']}}</td>
                    <td>{{$info['check_man2']}}</td>
                </tr>
            </table>
            @endif
        </div>
    </div>
@endsection